import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';

///吐司提示工具类
class ToastUtil {
  ///弹出一个文字吐司提示
  static void showToast(String msg,
      {Color backgroundColor = Colors.black54, TextStyle textStyle = const TextStyle(color: Colors.white)}) {
    BotToast.showText(text: msg, backgroundColor: Colors.black54, textStyle: textStyle);
  }

  ///弹出一个文字吐司提示
  static void showToastWhite(String msg) {
    BotToast.showText(
        text: msg, contentColor: Colors.white, textStyle: const TextStyle(color: Colors.black, fontSize: 16));
  }
}
